/**
 * 
 */
package pa2.node;

import java.rmi.RemoteException;
import java.util.Map;

import pa2.util.EqualityCompare;

/**
 * @author nego
 *
 */
public interface NodeFactory {
	
	
	public <K extends EqualityCompare<K>, V, M extends Map<K,V>>
		Node<K,V,M> createNode(K key, NodeData<K,V,M> data) throws RemoteException;

	public <K extends EqualityCompare<K>, V, M extends Map<K,V>>
		void destroyNode(Node<K,V,M> node) throws RemoteException;

}
